Move reading an extended command to Elisp (bug#5364, bug#5214).
authorJuri Linkov <juri@jurta.org>
Sun, 22 Aug 2010 23:27:59 +0000 (00:27 +0100)
committerJuri Linkov <juri@jurta.org>
Sun, 22 Aug 2010 23:27:59 +0000 (00:27 +0100)
commit85ca17d31f206b33522a0ac734a7f10888e3f22b
treea564ed69d18f7fb69b015606eaba888bd45ca692
parente44a4c37d0bc617a8292d69929ccaedbe80b862f
Move reading an extended command to Elisp (bug#5364, bug#5214).

* lisp/simple.el (read-extended-command): New function with the logic
for `completing-read' moved to Elisp from `execute-extended-command'.
Use `function-called-at-point' in `minibuffer-default-add-function'
to get a command name for M-n (bug#5364, bug#5214).

* src/keyboard.c (Fexecute_extended_command): Move reading a command name
with `completing-read' to a new Elisp function `read-extended-command'.
Call it to read a command to `function'  (bug#5364, bug#5214).
lisp/ChangeLog
lisp/simple.el
src/ChangeLog
src/keyboard.c